package com.ultrasoft.farmasoft.service;

import java.util.List;

import com.ultrasoft.farmasoft.domain.Country;
import com.ultrasoft.farmasoft.domain.Region;
import com.ultrasoft.farmasoft.domain.Locality;

public interface GeneralAdministrationService {
	
	//COUNTRY
	public List<Country> getCountryList();
	public List<Country> getCountryList(Short idCountry);
	public List<Country> getCountryListWithIDCountry(Short idCountry);
    public Country searchCountryByID(Short idCountry);// Search by ID in one country
    public void updateCountry(Country country); 
    public void removeCountry(Country country);    
    public void addCountry(Country country);        
    
    //REGION
    public List<Region> getRegionList();
    public List<Region> getRegionList(short idCountry);
	public List<Region> getRegionList(short idCountry,boolean active);
	public void addRegion(Region region);
    public void updateRegion(Region region);  
    public void removeRegion(Region region);
    public Region searchRegionByRegionId(Integer regionId);

	//LOCALITY
	public List<Locality> getLocality();
	public List<Locality> getLocalityListByRegionIdByActive(Integer idRegion,boolean active);
	public Locality searchLocalityByRegionIdByLocalityId(Integer regionId ,short localityId);
	public short getLocalityIdMax(Integer regionId);
	public void addLocality(Locality locality);
    public void updateLocality(Locality locality);  
    public void removeLocality(Locality locality);
    
}
